<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>
<%@ include file="/common/taglibs.jsp"%>
	
	<c:choose>
		<c:when test="${fn:length(deptList) gt 0 }">
			<table cellpadding="0" cellspacing="0" style="width: 600px;">
				<tr>
					<c:forEach var="dept" items="${deptList }" varStatus="i">
						<td style="width: 75px;">
							<c:choose>
								<c:when test="${dept.department eq null }">
									<a id="group_${dept.id}" href="javascript:void(0)" onclick="searchGroupUser(${dept.id})">全部</a>
								</c:when>
								<c:otherwise>
									<a id="group_${dept.id}" href="javascript:void(0)" onclick="searchGroupUser(${dept.id})">${dept.displayName }</a>	
								</c:otherwise>
							</c:choose>
						</td>
						<c:if test="${!i.first and i.index % 5 eq 0 }">
							</tr>
							<tr>
						</c:if>
					</c:forEach>
				</tr>
			</table>
		</c:when>
		<c:otherwise>
			您还未添加过分组，现在就去添加一个！
		</c:otherwise>
	</c:choose>